package com.github.freegeese;

import java.util.HashMap;
import java.util.Map;

public enum ZgxMenu {

    A("a"), B("b"), C("c");
    private String value;

    ZgxMenu(String value) {
        this.value = value;
        Cache.cache.put(this.value, this);
    }

    public static ZgxMenu get(String value) {
        return Cache.cache.get(value);
    }

    private static class Cache {
        private static Map<String, ZgxMenu> cache = new HashMap<>();
    }

}
